package com.bawei.module_moto_circle.ui.search

import com.bawei.module_moto_circle.http.MotoCircleApi
import com.bawei.module_moto_circle.http.MotoCircleNetModule
import kotlinx.coroutines.flow.flow
import javax.inject.Inject

/**
 *作者：lxy
 *功能:
 *时间：2025/6/5
 */
class SearchRepository @Inject constructor() {

    @Inject
    @MotoCircleNetModule.CommonMotoCircleApi
    lateinit var mApi: MotoCircleApi

    fun hotTopics() = flow {
        emit(mApi.hotTopics())
    }

    fun searchKeywordList(keyword: String) = flow {
        emit(mApi.searchKeywordList(keyword))
    }
}